<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2017/7/6
 * Time: 9:48
 * Project name: PHPTEST
 * File name: 3.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */

$pool = new MemcachePool();
$pool->connect("localhost",11211);
echo '$pool->getVersion()--> '.$pool->getVersion().PHP_EOL;
echo 'k --> '.$pool->get('k').PHP_EOL;
$pool->delete('k');
echo 'k --> '.$pool->get('k').PHP_EOL;

$pool->add("k",'haha');
echo 'k --> '.$pool->get('k').PHP_EOL;

$pool->increment('increment',1);
echo 'increment --> '.$pool->get('increment').PHP_EOL;

$pool->close();